Skip to content

fix: nested MCP cleanup error redaction - #4049

Merged
seratch merged 1 commit into
mainfrom
fix/mcp-nested-cleanup-redaction
Jul 31, 2026
Merged

fix: nested MCP cleanup error redaction#4049
seratch merged 1 commit into
mainfrom
fix/mcp-nested-cleanup-redaction

Conversation

@seratch

@seratch seratch commented Jul 31, 2026

Copy link
Copy Markdown
Member

This pull request fixes credential-bearing HTTPX errors nested inside MCP cleanup exception groups escaping the transport redaction boundary.

Cleanup recursively detects unsafe HTTPX errors without changing the established handling of safe nested groups. Unsafe groups are omitted from log records and mapped error causes, while safe nested groups retain their original error level, complete exception diagnostics, and non-HTTP sibling failures.

The regression coverage verifies redacted and diagnostic modes, mixed safe and unsafe groups, exception and traceback retention, safe group preservation, cancellation behavior, and cleanup state clearing.

@seratch seratch added this to the 0.19.x milestone Jul 31, 2026
@seratch
seratch merged commit 000a96b into main Jul 31, 2026
9 checks passed
@seratch
seratch deleted the fix/mcp-nested-cleanup-redaction branch July 31, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant